 

import React, { Component } from 'react';
import {
    StyleSheet,
    Text,
    View
} from 'react-native';
// import { createStore } from 'redux'
// import { Provider, connect } from 'react-redux'

// import RootPage from './pages';

// import { DingActions, DingReducers } from './redux/ding';

// //store
// let store = createStore(DingReducers.dingReducer);

// //connecting
// let mapStateToProps = function (state) {
//     return state ? { dingUnconfirmed: state.dingUnconfirmed } : { dingUnconfirmed: 0 };
// };
// let mapDispatchToProps = function (dispatch) {
//     return {
//         onDingRefresh: function (newData) {
//             dispatch(DingActions.newDingRetrieveUnconfirmedAction(newData.length));
//         }
//     };
// };
// let AppRoot = connect(
//     mapStateToProps,
//     mapDispatchToProps
// )(RootPage);


const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
    },
    welcome: {
        fontSize: 20,
        textAlign: 'center',
        margin: 10,
    },
    instructions: {
        textAlign: 'center',
        color: '#333333',
        marginBottom: 5,
    },
});

//using
export default class App extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.welcome}>
                    Welcome to React Native!
                </Text>
            </View>
        );
    }
}
